{include file="public/header296" /}
<div class="layui-form">
  <div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-inline">
      <input type="text" lay-verify="required" name="name" value="{$data.name|default=''}" autocomplete="on" class="layui-input" />
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">顶级分类</label>
    {notempty name="data['category_list']"}
    <div class="layui-input-inline">
      <select name="parent_id" lay-verify="required">
        <option value="0">顶级分类</option>
        {volist name="data['category_list']" id="vo"}
        <option value="{$vo.id}" {notempty name="data.parent_id"}{eq name="data.parent_id" value="$vo.id"}selected{/eq}{/notempty}>{$vo.name}</option>
        {/volist}
      </select>
    </div>
    {/notempty}
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">排序id</label>
    <div class="layui-input-inline">
      <input type="text" name="sort" value="{$data.sort}" class="layui-input">
    </div>
  </div>
  {notempty name="$data.update_time"}
  <div class="layui-form-item">
    <label class="layui-form-label">最近更新</label>
    <div class="layui-input-block">
      <input type="text" class="layui-input" value="{$data.update_time|date='Y-m-d H:i:s'}" disabled="" />
    </div>
  </div>
  {/notempty}
  <div class="layui-form-item layui-hide">
    <input type="hidden" name="id" id="id" value="{$data.id|default=''}" />
    <input type="button" lay-submit lay-filter="Lay-app-form-edit" id="Lay-app-form-edit" value="编辑">
  </div>
</div>
<script>
  layui.use(['layer','form'], function(){
    var $ = layui.$
            , form = layui.form;
  })
</script>
{include file="public/footer" /}